package com.lishem.rpc.client.cluster;

import com.lishem.rpc.client.channel.ProviderService;

import java.util.List;

/**
 * 负载均衡调用策略接口
 */
public interface ClusterStrategy {

    /**
     * 根据规则选取对应的服务
     * @param serviceRoutes
     * @return
     */
    ProviderService select(List<ProviderService> serviceRoutes);
}
